<layout name="layout" />
<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>分类名称</th>
                <th>操作</th>
            </tr>
            <foreach name="data" item="v" key="k">
	            <tr>
	                <td align="left"><php>echo str_repeat('-',$v['level']*8);</php>{$v.cat_name}</td>
	                <td align="center">
	                <a href="{:U('edit',array('id'=>$v['id']))}" title="编辑">编辑</a> |
	                <a onclick="return confirm('确定要干掉？');" href="{:U('delete',array('id'=>$v['id']))}" title="干掉">干掉</a> 
	                </td>
	            </tr>
            </foreach>
        </table>
    </div>
</form>

